import request from '@/utils/request'

// 查询收款计划管理1列表
export function listReceipt(query) {
  return request({
    url: '/property/receipt/list',
    method: 'get',
    params: query
  })
}

// 查询收款计划管理1详细
export function getReceipt(id) {
  return request({
    url: '/property/receipt/' + id,
    method: 'get'
  })
}

// 新增收款计划管理1
export function addReceipt(data) {
  return request({
    url: '/property/receipt',
    method: 'post',
    data: data
  })
}

// 修改收款计划管理1
export function updateReceipt(data) {
  return request({
    url: '/property/receipt',
    method: 'put',
    data: data
  })
}

// 删除收款计划管理1
export function delReceipt(id) {
  return request({
    url: '/property/receipt/' + id,
    method: 'delete'
  })
}

  // 发送RocketMQ消息
  export function sendRocketMQ() {
    return request({
      url: '/property/receipt/sendMQ',
      method: 'post'
    })
}
